package cn.edu.zjut.medlinebackend.service.impl;

import cn.edu.zjut.medlinebackend.mapper.MessageRecordDAO;
import cn.edu.zjut.medlinebackend.model.MessageRecordDo;
import cn.edu.zjut.medlinebackend.service.MessageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class MessageServiceImpl implements MessageService {
    @Resource
    private MessageRecordDAO messageRecordDAO;

    @Override
    public List<MessageRecordDo> getAllMessage(Integer groupId) {
        return messageRecordDAO.getAllByGroupId(groupId);
    }
}
